/* 全局样式重置 */
page {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

/* ColorUI图标样式 */
.cuIcon {
  font-family: "cuIcon";
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 容器样式 */
.sign-container {
  min-height: 100vh;
  padding-bottom: 40rpx;
}

/* 自定义导航栏 */
.custom-navbar {
  position: relative;
  height: 200rpx;
  overflow: hidden;
}

.navbar-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 0 0 40rpx 40rpx;
}

.navbar-content {
  position: relative;
  z-index: 1;
  padding: 80rpx 40rpx 40rpx;
  text-align: center;
}

.navbar-title {
  font-size: 48rpx;
  font-weight: bold;
  color: #fff;
  display: block;
  margin-bottom: 10rpx;
}

.navbar-subtitle {
  font-size: 28rpx;
  color: rgba(255, 255, 255, 0.8);
}

/* 加载状态 */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400rpx;
}

.loading-spinner {
  width: 80rpx;
  height: 80rpx;
  border: 4rpx solid #f3f3f3;
  border-top: 4rpx solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  margin-top: 20rpx;
  font-size: 28rpx;
  color: #666;
}

/* 主内容区域 */
.main-content {
  padding: 0 30rpx;
  padding-top: 20rpx;
}

/* 积分概览卡片 */
.score-overview-card {
  background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
  border-radius: 30rpx;
  padding: 40rpx;
  margin-bottom: 20rpx;
  box-shadow: 0 10rpx 30rpx rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.score-overview-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.score-header {
  display: flex;
  align-items: center;
  margin-bottom: 40rpx;
  position: relative;
  z-index: 1;
}

.score-avatar {
  width: 80rpx;
  height: 80rpx;
  margin-right: 20rpx;
}

.score-avatar image {
  width: 100%;
  height: 100%;
}

.score-info {
  flex: 1;
}

.score-label {
  display: block;
  font-size: 28rpx;
  color: #666;
  margin-bottom: 10rpx;
}

.score-value {
  display: block;
  font-size: 48rpx;
  font-weight: bold;
  color: #667eea;
}

.score-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.stat-item {
  display: flex;
  align-items: center;
  flex: 1;
}

.stat-icon {
  width: 60rpx;
  height: 60rpx;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20rpx;
}

.stat-icon.today-out {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.stat-icon.today-in {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.stat-icon text {
  font-size: 32rpx;
  color: #fff;
}

.stat-content {
  flex: 1;
}

.stat-value {
  display: block;
  font-size: 36rpx;
  font-weight: bold;
  color: #333;
  margin-bottom: 5rpx;
}

.stat-label {
  display: block;
  font-size: 24rpx;
  color: #999;
}

.stat-divider {
  width: 2rpx;
  height: 60rpx;
  background: #eee;
  margin: 0 40rpx;
}

/* 签到区域 */
.sign-section {
  margin-bottom: 40rpx;
}

.sign-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 30rpx;
  padding: 40rpx;
  display: flex;
  align-items: center;
  box-shadow: 0 10rpx 30rpx rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.sign-card:active {
  transform: scale(0.98);
  box-shadow: 0 5rpx 15rpx rgba(102, 126, 234, 0.2);
}

.sign-icon {
  width: 80rpx;
  height: 80rpx;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 30rpx;
}

.sign-icon text {
  font-size: 40rpx;
  color: #fff;
}

.sign-content {
  flex: 1;
}

.sign-title {
  display: block;
  font-size: 36rpx;
  font-weight: bold;
  color: #fff;
  margin-bottom: 10rpx;
}

.sign-reward {
  display: block;
  font-size: 28rpx;
  color: rgba(255, 255, 255, 0.8);
}

.sign-arrow {
  width: 60rpx;
  height: 60rpx;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sign-arrow text {
  font-size: 32rpx;
  color: #fff;
}

.signed-card {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  border-radius: 30rpx;
  padding: 40rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10rpx 30rpx rgba(168, 237, 234, 0.3);
}

.signed-icon {
  width: 80rpx;
  height: 80rpx;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20rpx;
}

.signed-icon text {
  font-size: 40rpx;
  color: #fff;
}

.signed-text {
  font-size: 36rpx;
  font-weight: bold;
  color: #fff;
}

/* 任务区域 */
.task-section {
  margin-bottom: 20rpx;
}

.section-header {
  margin-bottom: 20rpx;
}

.section-title {
  font-size: 36rpx;
  font-weight: bold;
  color: #333;
  display: block;
  margin-bottom: 10rpx;
}

.section-subtitle {
  font-size: 28rpx;
  color: #999;
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20rpx;
}

.task-card {
  background: #fff;
  border-radius: 20rpx;
  padding: 30rpx;
  box-shadow: 0 5rpx 15rpx rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

button.task-card {
  width: 100%;
  border: none;
  outline: none;
  background: #fff;
  border-radius: 20rpx;
  padding: 30rpx;
  margin: 0;
  line-height: 1;
  text-align: left;
  font-size: 28rpx;
  color: #333;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-shadow: 0 5rpx 15rpx rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.task-card:active {
  transform: scale(0.95);
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.12);
}

.task-icon {
  width: 60rpx;
  height: 60rpx;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20rpx;
}

.task-icon.wechat {
  background: linear-gradient(135deg, #7bc549 0%, #5cb85c 100%);
}

.task-icon.mobile {
  background: linear-gradient(135deg, #5bc0de 0%, #46b8da 100%);
}

.task-icon.email {
  background: linear-gradient(135deg, #f0ad4e 0%, #eea236 100%);
}

.task-icon.mp {
  background: linear-gradient(135deg, #d9534f 0%, #c9302c 100%);
}

.task-icon.group {
  background: linear-gradient(135deg, #5cb85c 0%, #449d44 100%);
}

.task-icon.desktop {
  background: linear-gradient(135deg, #9966cc 0%, #8a4aba 100%);
}

.task-icon.myapp {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
}

.task-icon.sign {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.task-icon.share {
  background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.task-icon.upload {
  background: linear-gradient(135deg, #45b7d1 0%, #3498db 100%);
}

.task-icon.video {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.task-icon text {
  font-size: 32rpx;
  color: #fff;
}

.task-info {
  flex: 1;
}

.task-name {
  display: block;
  font-size: 28rpx;
  font-weight: 500;
  color: #333;
  margin-bottom: 5rpx;
}

.task-reward {
  display: block;
  font-size: 24rpx;
  color: #667eea;
  font-weight: bold;
}

/* 记录区域 */
.record-section {
  margin-bottom: 20rpx;
}

.record-list {
  background: #fff;
  border-radius: 20rpx;
  overflow: hidden;
  box-shadow: 0 5rpx 15rpx rgba(0, 0, 0, 0.08);
}

.record-item {
  display: flex;
  align-items: center;
  padding: 30rpx;
  border-bottom: 1rpx solid #f5f5f5;
}

.record-item:last-child {
  border-bottom: none;
}

.record-icon {
  width: 60rpx;
  height: 60rpx;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20rpx;
}

.record-icon.income {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.record-icon.expense {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.record-icon text {
  font-size: 32rpx;
  color: #fff;
}

.record-content {
  flex: 1;
}

.record-title {
  display: block;
  font-size: 28rpx;
  font-weight: 500;
  color: #333;
  margin-bottom: 5rpx;
}

.record-time {
  display: block;
  font-size: 24rpx;
  color: #999;
}

.record-score {
  font-size: 32rpx;
  font-weight: bold;
}

.record-score.positive {
  color: #52c41a;
}

.record-score.negative {
  color: #ff4d4f;
}

/* 规则说明 */
.rules-section {
  margin-bottom: 40rpx;
}

.rules-content {
  background: #fff;
  border-radius: 20rpx;
  padding: 30rpx;
  box-shadow: 0 5rpx 15rpx rgba(0, 0, 0, 0.08);
}

.rule-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20rpx;
  padding-bottom: 20rpx;
  border-bottom: 1rpx solid #f5f5f5;
}

.rule-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.rule-number {
  width: 40rpx;
  height: 40rpx;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24rpx;
  color: #fff;
  margin-right: 20rpx;
  flex-shrink: 0;
}

.rule-text {
  flex: 1;
  font-size: 28rpx;
  line-height: 1.6;
  color: #666;
}

/* 响应式设计 */
@media (max-width: 375px) {
  .task-grid {
    grid-template-columns: 1fr;
  }
}

/* 图标字体 */
.iconfont {
  font-family: "iconfont";
}

.icon-calendar-check::before {
  content: "\e65d";
}

.icon-check-circle::before {
  content: "\e65e";
}

.icon-wechat::before {
  content: "\e607";
}

.icon-mobile::before {
  content: "\e600";
}

.icon-email::before {
  content: "\e605";
}

.icon-public::before {
  content: "\e6a2";
}

.icon-group::before {
  content: "\e613";
}

.icon-desktop::before {
  content: "\e601";
}

.icon-star::before {
  content: "\e7df";
}

.icon-share::before {
  content: "\e739";
}

.icon-upload::before {
  content: "\e7c7";
}

.icon-video::before {
  content: "\e7c8";
}

.icon-plus::before {
  content: "\e620";
}

.icon-minus::before {
  content: "\e621";
}

.icon-plus-circle::before {
  content: "\e622";
}

.icon-minus-circle::before {
  content: "\e623";
}

.icon-arrow-right::before {
  content: "\e624";
}